package com.huiquan.foundation.constant;

/**
 * @author rocky xu
 * @Description:模块ID
 */
public enum ModuleID {

    ZS("11", "主诉"),

    XBS("12", "现病史"),

    CT("13", "医学影像"),

    SLANG("28", "大白话"),

    INSPECTION("26", "指标"),

    SYNONYM("1", "同义词"),

    HOMOIONYM("27", "近义词"),

    SYMPTOM("29", "症状"),

    DISEASE("25", "疾病"),

    SECTION("102", "科室"),

    DYAD("24", "二元组"),

    ATOM("22", "原子症状"),

    ELEMENT("21", "元素"),

    MEDICINE("32", "药品"),

    MANAGEMENT("31", "管理"),

    DICTIONARY("33", "词典"),

    ANSWER("40", "问答服务"),

    BODY("103", "人体图");

    private String id;

    private String desc;

    private ModuleID(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public String getId() {
        return id;
    }

    public static String getDescById(String id) {
        for (ModuleID mid : ModuleID.values()) {
            if (mid.getId().equals(id)) {
                return mid.getDesc();
            }
        }

        return "";
    }
}
